import Vue from 'vue'
import Router from 'vue-router'
const Index = () => import('@/pages') 
const Home = () => import('@/pages/Home')
const Investment = () => import("@/pages/Investment")
const Find = () => import("@/pages/Find")
const My = () => import("@/pages/My")


// home 
const Recommend = () => import('@/pages/Home/Children/Recommend')
const Notice = () => import('@/pages/Home/Children/Notice')
const NewNotice = () => import("@/pages/Home/Children/Notice/NewNotice")
const Novice = () => import("@/pages/Home/Children/Novice")
const Understand = () => import("@/pages/Home/Children/Understand")
const Securltys =() => import("@/pages/Home/Children/securltys")
const Cooperations = () => import("@/pages/Home/Children/cooperations")
const Superviseys = () => import("../pages/Home/Children/superviseys")

// Investment

const Details = () => import("@/pages/Investment/Children/Details")
const Calculator = () => import('@/pages/Investment/Children/Calculator')


// Find

const Invitation = () => import("@/pages/Find/Children/Invitation")

const Member = () => import("@/pages/Find/Children/Member")
const Membergrade = () => import("@/pages/Find/Children/Member/Children/Membergrade")
const Memberrule = () => import("@/pages/Find/Children/Member/Children/Memberrule")

const Sign = () => import("@/pages/Find/Children/Sign")
const Help = () => import("@/pages/Find/Children/Help")

const Allproblem = () => import("@/pages/Find/Children/Allproblem")
const Problem = () => import("@/pages/Find/Children/Allproblem/Problem")

const Commodity = () => import("@/pages/Find/Children/Commodity")


//MY

const Personal = () => import("@/pages/My/Children/Personal")

const Modify = () => import("@/pages/My/Children/Personal/Children/Modify")
const Detailed = () => import("@/pages/My/Children/Personal/Children/Detailed")
const Openaccount = () => import("@/pages/My/Children/Personal/Children/Openaccount")
const Password = () => import("@/pages/My/Children/Personal/Children/Password")

const Loginpwd = () => import("@/pages/My/Children/Personal/Children/Password/Loginpwd")

const Setup = () => import("@/pages/My/Children/Setup")
const Usehelp = () => import("@/pages/My/Children/Usehelp")
const Aboutus = () => import("@/pages/My/Children/Aboutus")
const Capital = () => import("@/pages/My/Children/Capital")
const Integral = () => import("@/pages/My/Children/Integral")

const Discount = () => import("@/pages/My/Children/Discount")
const Gift = () => import("@/pages/My/Children/Discount/Children/Gift")
const Volume = () => import("@/pages/My/Children/Discount/Children/Volume")
const Investmentred = () => import("@/pages/My/Children/Discount/Children/Investmentred")

const Winning = () => import("@/pages/My/Children/Record/Winning")
const Tender = () => import("@/pages/My/Children/Record/Tender")

const Login = () => import('@/pages/My/Children/Login')
const Register = () => import('@/pages/My/Children/Register')





Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Index,
      children:[
        {
          path:"/",
          component:Home
        },
        {
          path:"home",
          component:Home
        },
        {
          path:"investment",
          component:Investment
        },
        {
          path:"find",
          component:Find
        },
        {
          path:"my",
          component:My
        }
      ]
    },
    // home（王琪）
    {
      // 新手推荐/福利表
      path:"/recommend",
      component:Recommend
    },
    {
      // 公告详情
      path:"/notice",
      component:Notice
    },
    {
      // 最新公告
      path:"/newnotice",
      component:NewNotice
    },
    {
      // 新手指引
      path:"/novice",
      component:Novice
    },
    {
      // 了解小荷
      path:"/understand",
      component:Understand
    },
    // 安全保障
    {
      path:"/securltys",
      component:Securltys
    },
    // 监管法规
    {
      path:"/superviseys",
      component:Superviseys
    },
    // 合作伙伴
    {
      path:"/cooperations",
      component:Cooperations
    },
    // Investment(林凡博)
    {
      // 详情
      path:"/details",
      component:Details
    },
    {
      // 计算器
      path:"/calculator",
      component:Calculator
    },
    // Find(柯期) 
    {
      // 邀请好友
      path:"/invitation",
      component:Invitation
    },
    {
      // 会员中心
      path:"/member",
      component:Member
    },
    {
      // 会员等级
      path:"/membergrade",
      component:Membergrade
    },
    {
      // 会员规则
      path:"memberrule",
      component:Memberrule
    },
    {
      // 签到
      path:"/sign",
      component:Sign
    },
    {
      // 帮助中心
      path:"/help",
      component:Help
    },
    {
      // 所有问题
      path:"/allproblem",
      component:Allproblem
    },
    {
      // 问题详情
      path:"/problem",
      component:Problem
    },
    {
      // 商品详情
      path:"/commodity",
      component:Commodity
    },
    // my
    {
      // 个人中心
      path:"/personal",
      component:Personal
    },
    {
      // 修改
      path:"/modify",
      component:Modify
    },
    {
      // 详细资料
      path:"/detailed",
      component:Detailed
    },
    {
      // 开户
      path:"/openaccount",
      component:Openaccount
    },
    {
      // 密码管理
      path:"/password",
      component:Password
    },
    {
      // 登录密码
      path:"/loginpwd",
      component:Loginpwd
    },
    {
      // 设置
      path:"/setup",
      component:Setup
    },
    {
      // 使用帮助
      path:"/usehelp",
      component:Usehelp
    },
    {
      // 关于我们
      path:"/aboutus",
      component:Aboutus
    },
    {
      // 资金详情
      path:"/capital",
      component:Capital
    },
    {
      // 积分
      path:"/integral",
      component:Integral
    },
    {
      // 我的优惠
      path:"/discount",
      component:Discount
    },
    {
      // 投资红包
      path:"/investmentred",
      component:Investmentred
    },
    {
      // 加息卷
      path:"/volume",
      component:Volume
    },
    {
      // 精美礼品
      path:"/gift",
      component:Gift
    },
    {
      // 中奖记录
      path:"/winning",
      component:Winning
    },
    {
      // 投标记录
      path:"/tender",
      component:Tender
    },
    {
      //登录
      path:'/login',
      component:Login
    },
    {
      //注册
      path:"/register",
      component:Register
    }
  ]
})
